package com.ht.demo.service.redis;

/**
 * 未定义的时间建议使用这里的值乘以一个数获得
 * 如：需要一个40秒的时间 TimeUtil.SECONDS_10 * 4
 * @Author hdengxian
 * @Date 2023/3/30 15:45
 */
public class TimeUtil {


    /**1秒*/
    public static final Integer SECONDS_1 = 1;
    /**5秒*/
    public static final Integer SECONDS_5 = 5;
    /**10秒*/
    public static final Integer SECONDS_10 = 10;
    /**30秒*/
    public static final Integer SECONDS_30 = 30;
    /**60秒*/
    public static final Integer SECONDS_60 = 60;


    /**1分钟*/
    public static final Integer MINUTES_1 = 1 * SECONDS_60;
    /**5分钟*/
    public static final Integer MINUTES_5 = 5 * SECONDS_60;
    /**10分钟*/
    public static final Integer MINUTES_10 = 10 * SECONDS_60;
    /**30分钟*/
    public static final Integer MINUTES_30 = 30 * SECONDS_60;
    /**60分钟*/
    public static final Integer MINUTES_60 = 60 * SECONDS_60;


    /**1小时*/
    public static final Integer HOUR_1 = 1 * MINUTES_60;
    /**6小时*/
    public static final Integer HOUR_6 = 6 * MINUTES_60;
    /**24小时*/
    public static final Integer HOUR_24 = 24 * MINUTES_60;
}
